<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@include file="/WEB-INF/common/head.jsp"%>
<div class="col-md-12 col-sm-12 col-xs-12">
    <div class="row">
        <div class="col-md-12 col-sm-12 col-xs-12">
            <div class="x_panel">
                <div class="x_title">

                    <h2>
                        <div class="fa-hover col-md-3 col-sm-4 col-xs-12">
                            APP信息管理维护
                            <a href="#/user">
                                <i class="fa fa-user"></i>
                            </a>
                        </div>
                        <small>测试账户001-您可以通过搜索或者其他的筛选项对APP的信息进行修改、删除等管理操作。^_^</small>
                    </h2>
                    <div class="clearfix"></div>
                </div>
                <div class="x_content">

                    <div>
                        <form method="post" action="${pageContext.request.contextPath}/user/show_All">
                            <span>软件名称</span>
                            <input type="text" name="softwareName" value=""/>

                            <span>APP状态</span>
                            <select name="App_type">
                                <c:if test="${app !=null}">
                                    <option value="0">--请选择--</option>
                                    <c:forEach var="app" items="${app}">
                                        <option value="${app.valueId}">${app.valueName}</option>
                                    </c:forEach>
                                </c:if>
                            </select>

                            <span>所属平台</span>
                            <select name="Pt_type">
                                <c:if test="${pt !=null}">
                                    <option value="0">--请选择--</option>
                                    <c:forEach var="pt" items="${pt}">
                                        <option value="${pt.valueId}">${pt.valueName}</option>
                                    </c:forEach>
                                </c:if>
                            </select>

                            <span>一级分类</span>
                            <select name="categoryLevel1" id="categoryLevel1" >
                                <option>-请选择</option>
                                <option value="1">全部应用</option>
                                <option value="2">全部游戏</option>
                            </select>


                            <span>二级分类</span>
                            <select name="categoryLevel2" id="categoryLevel2">

                                <option value="0" selected="selected">--请选择--</option>

                            </select>

                            <span>三级分类</span>
                            <select name="categoryLevel3" id="categoryLevel3">
                                <option selected="selected">-请选择</option>

                            </select>
                            <%--====================--%>

                            <%-------===============--%>



                            <input type="submit" class="btn btn-primary" value="查询"/>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

<div class="col-md-12 col-sm-12 col-xs-12">
    <div class="x_panel">
        <div class="x_content">
            <table id="datatable" class="table table-striped table-bordered">
                <thead>
                <tr>
                    <th>软件名称</th>
                    <th>APK名称</th>
                    <th>软件大小(单位:M)</th>
                    <th>所属平台</th>
                    <th>所属分类(一级分类、二级分类、三级分类)</th>
                    <th>状态</th>
                    <th>下载次数</th>
                    <th>最新版本号</th>
                    <th>操作</th>
                </tr>
                </thead>
                <tbody>
                <c:forEach var="info" items="${info}" varStatus="status">
                    <tr>
                        <td>${info.softwareName}</td>
                        <td>${info.APKName}</td>
                        <td>${info.softwareSize}</td>
                        <td>${info.platformName}</td>
                        <td>${info.categoryLevel1Name}->${info.categoryLevel2Name}->${info.categoryLevel3Name}</td>
                        <td>${info.statusName}</td>
                        <td>${info.downloads}</td>
                        <td>${info.versionNo}</td>
                        <td>
                            <div class="btn-group">
                                <%--<button type="button" class="btn btn-primary"  data-toggle="dropdown" aria-expanded="false">--%>
                                    <a href="${pageContext.request.contextPath}/user/appSH?id=${info.id}">审核</a>
                                <%--</button>--%>
                            </div>
                        </td>
                    </tr>
                </c:forEach>
                </tbody>
            </table>
        </div>
        <span>共${totalCount}条记录
         [${currentPageNo}/${totalPageCount}]页
    <c:if test="${currentPageNo>1}">
        <a href="${pageContext.request.contextPath}/user/show_SH?pageIndex=1">首页</a>
        <a href="${pageContext.request.contextPath}/user/show_SH?pageIndex=${currentPageNo-1}">上一页</a>
    </c:if>
    <c:if test="${currentPageNo<totalPageCount}">
        <a href="${pageContext.request.contextPath}/user/show_SH?pageIndex=${currentPageNo+1}">下一页</a>
        <a href="${pageContext.request.contextPath}/user/show_SH?pageIndex=${totalPageCount}">尾页</a>
    </c:if>
        </span>
    </div>
</div>
<%@include file="/WEB-INF/common/foot.jsp"%>
<script type="text/javascript" src="${pageContext.request.contextPath}/statics/js/AppCategory/appCategory.js"></script>